package com.zzt.lotterysystem.service;

import com.zzt.lotterysystem.controller.param.DrawPrizeParam;
import com.zzt.lotterysystem.controller.param.ShowWinningRecordsParam;
import com.zzt.lotterysystem.dao.dataobject.WinningRecordDO;
import com.zzt.lotterysystem.service.dto.WiningRecordDTO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-05-28
 * Time: 22:49
 */
public interface DrawPrizeService {

    /**
     * 异步抽奖接口
     *
     * @param param
     */
    void drawPrize(DrawPrizeParam param);

    /**
     * 校验抽奖请求
     *
     * @param param
     */
    Boolean checkDrawPrize(DrawPrizeParam param);

    /**
     * 保存中奖者名单
     *
     * @param param
     */
    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    /**
     * 删除活动下的中奖记录
     *
     * @param activityId
     * @param prizeId
     */
    void deleteRecords(Long activityId, Long prizeId);

    /**
     * 获取中奖记录
     *
     * @param param
     * @return
     */
    List<WiningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
